<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
  <!-- 引入 layui.js -->
  <script src="//unpkg.com/layui@2.6.8/dist/layui.js"></script>
  <script type="text/javascript" src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
  <script src="js/main.js"></script>
</head>
<body>
<!--<div id="login">-->
<!--  <label class="layui-form-label">管理员密码</label>-->
<!--  <div class="layui-input-block">-->
<!--    <input type="password" id="user" name="user" required lay-verify="required" placeholder="管理员密码" autocomplete="off"-->
<!--           class="layui-input">-->
<!--  </div>-->
<!--  <button type="button" class="layui-btn" id="l_submit" onclick="login()" >登录</button>-->
<!--</div>-->
<!--<div id="main" style="display: none">-->


<div id="mm" style="display: none">
  <input type="text" id="id" name="id" required lay-verify="required" placeholder="id" autocomplete="off"
         class="layui-input" style="display: none">
  <label class="layui-form-label">学号</label>
  <div class="layui-input-block">
    <input type="text" id="uid" name="uid" required lay-verify="required" placeholder="请输入学号" autocomplete="off"
           class="layui-input">
  </div>
  <label class="layui-form-label">密码</label>
  <div class="layui-input-block">
    <input type="password" id="pwd" name="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off"
           class="layui-input">
  </div>
  <label class="layui-form-label">座位号</label>
  <div class="layui-input-block">
    <input type="text" id="seatid" name="seatid" required lay-verify="required" placeholder="输入座位号" autocomplete="off"
           class="layui-input">
  </div>
  <button type="button" class="layui-btn" id="submit" onclick="aou()" >提交</button>
  <a href="main.html"><button type="button" class="layui-btn" id="re" >重置</button></a>
</div>
<button type="button" class="layui-btn layui-btn-normal" id="add" onclick="add()">新建</button>

<table class="layui-table">
  <colgroup>
    <col width="150">
    <col width="200">
    <col>
  </colgroup>
  <thead>
  <tr>
    <th>id</th>
    <th>学号</th>
    <th>座位号</th>
    <th>操作</th>
  </tr>
  </thead>
  <tbody id="tbody">
  <tr>
    <td>1</td>
    <td>18037110</td>
    <td></td>
    <td>
      <button type="button" class="layui-btn" onclick="update()">修改</button>
      <button type="button" class="layui-btn layui-btn-danger" onclick="del()">删除</button>
    </td>
  </tr>
  </tbody>
</table>


</div>
</body>
</html>
